package com.huangwenshuo.futurestarschoolmanagement.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangwenshuo
 * @since 2020-12-26
 */
@Data
public class UsersPo implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * 用户id
     */
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 是否删除 0 否 1是
     */
    private Boolean isDelete;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 权限列表
     */
    private List<RolesPo> rolesPo;

    @Override
    public String toString() {
        return "Users{" +
        "uid=" + uid +
        ", username=" + username +
        ", password=" + password +
        ", createTime=" + createTime +
        ", isDelete=" + isDelete +
        "}";
    }
}
